<form id="add-form" class="form-horizontal" role="form" data-toggle="validator" method="POST" action="">

    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Name')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-name" class="form-control" name="row[name]" data-rule="required;username;name" type="text">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Title')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-title" class="form-control" name="row[title]" data-rule="required" type="text">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Charset')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-charset" class="form-control" name="row[charset]" type="text" readonly value="UTF-8">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Serverindex')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-serverindex" class="form-control" name="row[serverindex]" type="text" value="8383">
            <div class="alert alert-danger-light" style="margin-top:5px;">
                端口号(数字)，连接 localhost 的该端口号 (例：8383)<br>
                地址:端口号，冒号连接地址（域名、IP地址）和端口 (例：127.0.0.1:8383)<br>
                文件路径，本机的 unix socket 连接路径 (例：/tmp/index.sock)
            </div>
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Serversearch')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-serversearch" class="form-control" name="row[serversearch]" type="text" value="8384">
            <div class="alert alert-danger-light" style="margin-top:5px;">
                端口号(数字)，连接 localhost 的该端口号 (例：8384)<br>
                地址:端口号，冒号连接地址（域名、IP地址）和端口 (例：127.0.0.1:8384)<br>
                文件路径，本机的 unix socket 连接路径 (例：/tmp/search.sock)
            </div>
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Logo')}:</label>
        <div class="col-xs-12 col-sm-8">
            <div class="input-group">
                <input id="c-logo" class="form-control" size="50" name="row[logo]" type="text" value="" placeholder="留空将使用默认Logo，建议至少100px*100px">
                <div class="input-group-addon no-border no-padding">
                    <span><button type="button" id="plupload-image" class="btn btn-danger plupload" data-input-id="c-logo" data-mimetype="image/gif,image/jpeg,image/png,image/jpg,image/bmp" data-multiple="false" data-preview-id="p-logo"><i class="fa fa-upload"></i> {:__('Upload')}</button></span>
                    <span><button type="button" id="fachoose-image" class="btn btn-primary fachoose" data-input-id="c-logo" data-mimetype="image/*" data-multiple="false"><i class="fa fa-list"></i> {:__('Choose')}</button></span>
                </div>
                <span class="msg-box n-right" for="c-logo"></span>
            </div>
            <ul class="row list-inline plupload-preview" id="p-logo"></ul>
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Indextpl')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-indextpl" class="form-control" name="row[indextpl]" type="text" value="index" placeholder="留空将使用默认模板">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Listtpl')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-listtpl" class="form-control" name="row[listtpl]" type="text" value="list" placeholder="留空将使用默认模板">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Pagesize')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-pagesize" class="form-control" name="row[pagesize]" type="number" value="10">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Isfrontend')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input  id="c-isfrontend" name="row[isfrontend]" type="hidden" value="1">
            <a href="javascript:;" data-toggle="switcher" class="btn-switcher" data-input-id="c-isfrontend" data-yes="1" data-no="0" >
                <i class="fa fa-toggle-on text-success fa-2x"></i>
            </a>
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Isfuzzy')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input  id="c-isfuzzy" name="row[isfuzzy]" type="hidden" value="1">
            <a href="javascript:;" data-toggle="switcher" class="btn-switcher" data-input-id="c-isfuzzy" data-yes="1" data-no="0" >
                <i class="fa fa-toggle-on text-success fa-2x"></i>
            </a>
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Issynonyms')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input  id="c-issynonyms" name="row[issynonyms]" type="hidden" value="1">
            <a href="javascript:;" data-toggle="switcher" class="btn-switcher" data-input-id="c-issynonyms" data-yes="1" data-no="0" >
                <i class="fa fa-toggle-on text-success fa-2x"></i>
            </a>
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Isindexhotwords')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input  id="c-isindexhotwords" name="row[isindexhotwords]" type="hidden" value="1">
            <a href="javascript:;" data-toggle="switcher" class="btn-switcher" data-input-id="c-isindexhotwords" data-yes="1" data-no="0" >
                <i class="fa fa-toggle-on text-success fa-2x"></i>
            </a>
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Ishotwords')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input  id="c-ishotwords" name="row[ishotwords]" type="hidden" value="0">
            <a href="javascript:;" data-toggle="switcher" class="btn-switcher" data-input-id="c-ishotwords" data-yes="1" data-no="0" >
                <i class="fa fa-toggle-on text-success fa-flip-horizontal text-gray fa-2x"></i>
            </a>
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Isrelatedwords')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input  id="c-isrelatedwords" name="row[isrelatedwords]" type="hidden" value="">
            <a href="javascript:;" data-toggle="switcher" class="btn-switcher" data-input-id="c-isrelatedwords" data-yes="1" data-no="0" >
                <i class="fa fa-toggle-on text-success fa-2x"></i>
            </a>
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Status')}:</label>
        <div class="col-xs-12 col-sm-8">
            
            <div class="radio">
            {foreach name="statusList" item="vo"}
            <label for="row[status]-{$key}"><input id="row[status]-{$key}" name="row[status]" type="radio" value="{$key}" {in name="key" value="normal"}checked{/in} /> {$vo}</label> 
            {/foreach}
            </div>

        </div>
    </div>
    <div class="form-group layer-footer">
        <label class="control-label col-xs-12 col-sm-2"></label>
        <div class="col-xs-12 col-sm-8">
            <button type="submit" class="btn btn-success btn-embossed disabled">{:__('OK')}</button>
            <button type="reset" class="btn btn-default btn-embossed">{:__('Reset')}</button>
        </div>
    </div>
</form>
